<table class="formTable">
        <tbody>
            {if $forms.id != ''}
                <tr>
                        <th>登録日時</th>
                        <td>
                                {$forms.r_date}<input type="hidden" name="forms[r_date]" value="{$forms.r_date}" />
                        </td>
                </tr>
                <tr>
                        <th>更新日時</th>
                        <td>
                                {$forms.u_date}
                        </td>
                </tr>
                <tr>
                        <th>ID</th>
                        <td>
                                {$forms.id}
                        </td>
                </tr>
            {/if}
                <tr>
                        <th class="must">状態</th>
                        <td>{html_radios name='forms[status]' options=$item->getStatusMap() selected=$forms.status separator='　'}</td>
                </tr>
                <tr>
                        <th>商品コード</th>
                        <td>
                                <input type="text" name="forms[code]" value="{$forms.code}" />{$err.code}
                        </td>
                </tr>
                <tr>
                        <th>企業マスタ</th>
                        <td>
                            <select name="forms[company]">
                                <option value="">選択してください</option>
                                {html_options options=$item->getCompany() selected=$forms.company}
                            </select>
                        </td>
                </tr>
                <tr>
                        <th class="must">商品名</th>
                        <td>
                                <input type="text" name="forms[item_name]" class="text" value="{$forms.item_name}" />{$err.item_name}
                        </td>
                </tr>
                <tr>
                        <th>フリガナ</th>
                        <td>
                                <input type="text" name="forms[item_kana]" class="text" value="{$forms.item_kana}" />{$err.item_kana}
                        </td>
                </tr>
                <tr>
                        {if isset($use_category)}
                        <tr>
                            <th>カテゴリ</th>
                            <td>
                                {category_selecter selected_category=$forms.select_category parent=$use_category}
                            </td>
                        </tr>
                        {/if}
                </tr>
                <tr>
                        <th>優先度</th>
                        <td>
                                {assign var=key value='order_num'}
                                <input type="text" name="forms[{$key}]" value="{$forms[$key]}" />
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                <tr>
                        <th>原価</th>
                        <td>
                                {assign var=key value='cost'}
                                <input type="text" name="forms[{$key}]" class="text_short" value="{$forms[$key]}" />
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                <tr>
                        <th>税抜価格</th>
                        <td>
                                {assign var=key value='price'}
                                <input type="text" name="forms[{$key}]" class="text_short" value="{$forms[$key]}" />
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                <tr>
                        <th>税込価格</th>
                        <td>
                                {assign var=key value='price2'}
                                <input type="text" name="forms[{$key}]" class="text_short" value="{$forms[$key]}" />
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                <tr>
                        <th>特別価格</th>
                        <td class="floats">
                                {assign var=key value='special_price'}
                                <input type="text" name="forms[{$key}]" class="text_short" value="{$forms[$key]}" />
                                {if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}<br class="clear" />
                                <input type="text" name="forms[sp_st_date]" class="text_date" value="{$forms.sp_st_date}" />
                                {html_options name='forms[sp_st_time]' options=$item->getTimeMap() selected=$forms.sp_st_time}<span>時　～　</span>
                                <input type="text" name="forms[sp_ed_date]" class="text_date" value="{$forms.sp_ed_date}" />
                                {html_options name='forms[sp_ed_time]' options=$item->getTimeMap() selected=$forms.sp_ed_time}<span>時</span>{$err.sp_st_date}{$err.sp_ed_date}
                        </td>
                </tr>
                <tr>
                        <th class="must">画像</th>
                        <td>                            
                            {foreach from=$image_list key=name item=value}
                                {if $value.0 != ''}
                                    {image_uploader name="image[$name][]" value=$value}
                                    <a href="javascript:;" onclick="remove_img({$name});" class="delete_mini">削除</a><br/>
                                {else}
                                    {image_uploader name="image[$name][]"}
                                {/if}
                            {/foreach}
                            <input type="button" name="add_image" value="画像枠を追加" id="addPic" rel="1">
                            <input type="hidden" name="del_num" value=""/><!--削除ボタン用-->
                        </td>
                </tr>
                <tr>
                        <th>内容</th>
                        <td>
                                {assign var=key value='page_text'}
				<textarea name="forms[{$key}]" cols="80" class="mce_edit">{$forms[$key]}</textarea>
				{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
                        </td>
                </tr>
                <tr>
                        <th>公開開始日時</th>
                        <td class="floats">
                                <input type="text" name="forms[st_date]" class="text_date" value="{$forms.st_date}" />
                                {html_options name='forms[st_time]' options=$item->getTimeMap() selected=$forms.st_time}<span>時</span>
                        </td>
                </tr>
                <tr>
                        <th>公開終了日時</th>
                        <td class="floats">
                                <input type="text" name="forms[ed_date]" class="text_date" value="{$forms.ed_date}" />
                                {html_options name='forms[ed_time]' options=$item->getTimeMap() selected=$forms.ed_time}<span>時</span>
                        </td>
                </tr>
                <tr>
                        <th>概要</th>
                        <td>
                                <input type="text" name="forms[description]" class="text" value="{$forms.description}" />
                        </td>
                </tr>
                <tr>
                        <th>キーワード</th>
                        <td>
                                <input type="text" name="forms[keyword]" class="text" value="{$forms.keyword}" />
                        </td>
                </tr>
                <tr>
                        <th>キャッチコピー</th>
                        <td>
                                <input type="text" name="forms[catchcopy]" class="text" value="{$forms.catchcopy}" />
                        </td>
                </tr>
        </tbody>
</table>